<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>IfMsgBox</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
</head>
<body>

<h1>IfMsgBox</h1>

<p>Checks which button was pushed by the user during the most recent <a href="MsgBox.htm">MsgBox</a> command.</p>

<pre class="Syntax">IfMsgBox, ButtonName</pre>
<h3>Parameters</h3>
<dl>

  <dt>ButtonName</dt>
  <dd><p>One of the following strings to represent which button the user pressed in the most recent <a href="MsgBox.htm">MsgBox</a> command:</p>
      <p>Yes<br>
        No<br>
        OK<br>
        Cancel<br>
        Abort<br>
        Ignore<br>
        Retry<br>
        Continue <span class="ver">[v1.0.44.08+]</span><br>
        TryAgain <span class="ver">[v1.0.44.08+]</span><br>
        Timeout (that is, the word &quot;timeout&quot; is present if the MsgBox <a href="MsgBox.htm#Timeout">timed out</a>)</p>
    </dd>

</dl>

<h3>Related</h3>
<p><a href="MsgBox.htm">MsgBox</a></p>
<h3>Example</h3>
<pre class="NoIndent">MsgBox, 4, , Would you like to continue?, 5  <em>; 5-second timeout.</em>
IfMsgBox, No
    Return  <em>; User pressed the &quot;No&quot; button.</em>
IfMsgBox, Timeout
    Return <em>; i.e. Assume &quot;No&quot; if it timed out.
; Otherwise, continue:</em>
...</pre>

</body>
</html>
